package org.ch02.test00.demo03;

import java.lang.reflect.Method;

/**
 * @author CSY
 * @date 2025 - 03 - 19
 */
public class MainTest {
    public static void main(String[] args) {
        Class<String> clazz = String.class;
        Method[] declaredMethods = clazz.getDeclaredMethods();
        System.out.println("方法的个数："+declaredMethods.length);
        for (Method method : declaredMethods) {
            System.out.println(method);
        }
    }
}
